Skip to content

docs: describe numeric keys in getMultiple() and a TTL of zero or less - #188

Merged
armanist merged 1 commit into
stagingfrom
docs/cache-contracts
Nov 22, 2026
Merged

armanist merged 1 commit into
stagingfrom
docs/cache-contracts

Conversation

@armanist

Copy link
Copy Markdown
Collaborator

For #187 (not closed here: merges into staging close nothing).

Framework changes: quantum-php/framework#691 (the getMultiple() return type) and quantum-php/framework#692 (Memcached TTL).

Summary

  • Cache contracts, TTL: a TTL of 0 or less, or a DateInterval in the past, means the item is already expired; Redis and Memcached delete it at once, file and database storage on the next read or presence check.
  • Cache contracts, batch methods: getMultiple() returns a numeric key as an integer key, as PHP arrays do.
  • Memcached adapter: a TTL of more than 30 days is sent as an absolute time, and a TTL of 0 or less deletes the item.

Changed paths

  • v3.0/packages/cache/contracts.md
  • v3.0/packages/cache/adapters.md

SUMMARY.md is unchanged: no pages were added, moved or removed.

@armanist
armanist merged commit 769cfe9 into staging Nov 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant